stylecontext: Fix list_classes() after optimization
authorGarrett Regier <garrettregier@gmail.com>
Fri, 11 Sep 2015 16:46:34 +0000 (09:46 -0700)
committerGarrett Regier <garrettregier@gmail.com>
Fri, 11 Sep 2015 16:48:38 +0000 (09:48 -0700)
Otherwise a junk value is returned.

gtk/gtkstylecontext.c

index 643a17b8965a673ceb2d703788d07532a6c0bcbb..ddc0d11a69dabefe67bdfe431035748e37a72e7d 100644 (file)
@@ -1391,7 +1391,7 @@ GList *
 gtk_style_context_list_classes (GtkStyleContext *context)
 {
   GtkStyleContextPrivate *priv;
-  GList *classes_list;
+  GList *classes_list = NULL;
   const GQuark *classes;
   guint n_classes, i;
   const gchar *quark_str;